package com.fuxi.cloud.desreport.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * ReportDbInfo
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
public class ReportDbInfo {
    private long total;
    private long count;
    private String isPage;
    private String isList;
    private String dbType;
    private List<Map<String, Object>> list;
    List<Map<String, Object>> linkList;

    public ReportDbInfo() {
    }

    public ReportDbInfo(long total, long count, String isPage, String isList, String dbType) {
        this.total = total;
        this.count = count;
        this.isList = isList;
        this.isPage = isPage;
        this.dbType = dbType;
    }

    public ReportDbInfo(String isPage, String isList, String dbType) {
        this.isList = isList;
        this.isPage = isPage;
        this.dbType = dbType;
        this.list = new ArrayList();
    }

    public long getTotal() {
        return this.total;
    }

    public long getCount() {
        return this.count;
    }

    public String getIsPage() {
        return this.isPage;
    }

    public String getIsList() {
        return this.isList;
    }

    public String getDbType() {
        return this.dbType;
    }

    public List<Map<String, Object>> getList() {
        return this.list;
    }

    public List<Map<String, Object>> getLinkList() {
        return this.linkList;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public void setIsPage(String isPage) {
        this.isPage = isPage;
    }

    public void setIsList(String isList) {
        this.isList = isList;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public void setList(List<Map<String, Object>> list) {
        this.list = list;
    }

    public void setLinkList(List<Map<String, Object>> linkList) {
        this.linkList = linkList;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ReportDbInfo)) {
            return false;
        } else {
            ReportDbInfo var2 = (ReportDbInfo)o;
            if (!var2.canEqual(this)) {
                return false;
            } else if (this.getTotal() != var2.getTotal()) {
                return false;
            } else if (this.getCount() != var2.getCount()) {
                return false;
            } else {
                label76: {
                    String var3 = this.getIsPage();
                    String var4 = var2.getIsPage();
                    if (var3 == null) {
                        if (var4 == null) {
                            break label76;
                        }
                    } else if (var3.equals(var4)) {
                        break label76;
                    }

                    return false;
                }

                String var5 = this.getIsList();
                String var6 = var2.getIsList();
                if (var5 == null) {
                    if (var6 != null) {
                        return false;
                    }
                } else if (!var5.equals(var6)) {
                    return false;
                }

                label62: {
                    String var7 = this.getDbType();
                    String var8 = var2.getDbType();
                    if (var7 == null) {
                        if (var8 == null) {
                            break label62;
                        }
                    } else if (var7.equals(var8)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    List var9 = this.getList();
                    List var10 = var2.getList();
                    if (var9 == null) {
                        if (var10 == null) {
                            break label55;
                        }
                    } else if (var9.equals(var10)) {
                        break label55;
                    }

                    return false;
                }

                List var11 = this.getLinkList();
                List var12 = var2.getLinkList();
                if (var11 == null) {
                    if (var12 != null) {
                        return false;
                    }
                } else if (!var11.equals(var12)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ReportDbInfo;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        long var3 = this.getTotal();
        int var12 = var2 * 59 + (int)(var3 >>> 32 ^ var3);
        long var5 = this.getCount();
        var12 = var12 * 59 + (int)(var5 >>> 32 ^ var5);
        String var7 = this.getIsPage();
        var12 = var12 * 59 + (var7 == null ? 43 : var7.hashCode());
        String var8 = this.getIsList();
        var12 = var12 * 59 + (var8 == null ? 43 : var8.hashCode());
        String var9 = this.getDbType();
        var12 = var12 * 59 + (var9 == null ? 43 : var9.hashCode());
        List var10 = this.getList();
        var12 = var12 * 59 + (var10 == null ? 43 : var10.hashCode());
        List var11 = this.getLinkList();
        var12 = var12 * 59 + (var11 == null ? 43 : var11.hashCode());
        return var12;
    }

    @Override
    public String toString() {
        return "ReportDbInfo(total=" + this.getTotal() + ", count=" + this.getCount() + ", isPage=" + this.getIsPage() + ", isList=" + this.getIsList() + ", dbType=" + this.getDbType() + ", list=" + this.getList() + ", linkList=" + this.getLinkList() + ")";
    }
}

